package com.orange.project.news.service;

import com.orange.bean.rebangTody.dto.request.HotNewsReq;
import com.orange.bean.rebangTody.dto.response.HotNewsRes;
import com.orange.bean.rebangTody.po.NewsPo;
import com.orange.bean.rebangTody.vo.NewsListRes;
import com.orange.bean.todayNews.dto.response.WordCloudRes;
import com.orange.common.base.service.BaseService;

import java.util.List;

/**
 * TODO
 *
 * @Author YWF
 * @Date 2025/8/11 11:43
 */
public interface NewsService extends BaseService<NewsPo> {

    HotNewsRes getNewsListForNet(HotNewsReq hotNewsReq);

    List<NewsListRes> getCacheNewsList();

    List<NewsListRes> getCacheNewsPageList(int pageNum, int pageSize);

    List<NewsListRes> getNowNewsList(String id);

    List<NewsListRes> getCacheNowNewsList(String type, int pageNum, int pageSize);

    void initNowNewsToCache();

    List<WordCloudRes> getHotWordCloudForCache();
    List<WordCloudRes> getHotWordCloudForCacheV2();

}
